home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / perl5 / ExtUtils::Liblist.z / ExtUtils::Liblist
Encoding:
Text File  |  1998-10-30  |  8.0 KB  |  199 lines

  1.  
  2.  
  3.  
  4. EEEExxxxttttUUUUttttiiiillllssss::::::::LLLLiiiibbbblllliiiisssstttt((((3333))))                                      EEEExxxxttttUUUUttttiiiillllssss::::::::LLLLiiiibbbblllliiiisssstttt((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ExtUtils::Liblist - determine libraries to use and how to use them
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      require ExtUtils::Liblist;
  13.  
  14.      ExtUtils::Liblist::ext($self, $potential_libs, $verbose);
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      This utility takes a list of libraries in the form -llib1 -llib2 -llib3
  18.      and prints out lines suitable for inclusion in an extension Makefile.
  19.      Extra library paths may be included with the form -L/another/path this
  20.      will affect the searches for all subsequent libraries.
  21.  
  22.      It returns an array of four scalar values: EXTRALIBS, BSLOADLIBS,
  23.      LDLOADLIBS, and LD_RUN_PATH.  Some of these don't mean anything on VMS
  24.      and Win32.  See the details about those platform specifics below.
  25.  
  26.      Dependent libraries can be linked in one of three ways:
  27.  
  28.      +o For static extensions
  29.        by the ld command when the perl binary is linked with the extension
  30.        library. See EXTRALIBS below.
  31.  
  32.      +o For dynamic extensions
  33.        by the ld command when the shared object is built/linked. See
  34.        LDLOADLIBS below.
  35.  
  36.      +o For dynamic extensions
  37.        by the DynaLoader when the shared object is loaded. See BSLOADLIBS
  38.        below.
  39.  
  40.      EEEEXXXXTTTTRRRRAAAALLLLIIIIBBBBSSSS
  41.  
  42.      List of libraries that need to be linked with when linking a perl binary
  43.      which includes this extension Only those libraries that actually exist
  44.      are included.  These are written to a file and used when linking perl.
  45.  
  46.      LLLLDDDDLLLLOOOOAAAADDDDLLLLIIIIBBBBSSSS aaaannnndddd LLLLDDDD____RRRRUUUUNNNN____PPPPAAAATTTTHHHH
  47.  
  48.      List of those libraries which can or must be linked into the shared
  49.      library when created using ld. These may be static or dynamic libraries.
  50.      LD_RUN_PATH is a colon separated list of the directories in LDLOADLIBS.
  51.      It is passed as an environment variable to the process that links the
  52.      shared library.
  53.  
  54.      BBBBSSSSLLLLOOOOAAAADDDDLLLLIIIIBBBBSSSS
  55.  
  56.      List of those libraries that are needed but can be linked in dynamically
  57.      at run time on this platform.  SunOS/Solaris does not need this because
  58.      ld records the information (from LDLOADLIBS) into the object file.  This
  59.      list is used to create a .bs (bootstrap) file.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. EEEExxxxttttUUUUttttiiiillllssss::::::::LLLLiiiibbbblllliiiisssstttt((((3333))))                                      EEEExxxxttttUUUUttttiiiillllssss::::::::LLLLiiiibbbblllliiiisssstttt((((3333))))
  71.  
  72.  
  73.  
  74. PPPPOOOORRRRTTTTAAAABBBBIIIILLLLIIIITTTTYYYY
  75.      This module deals with a lot of system dependencies and has quite a few
  76.      architecture specific iiiiffffs in the code.
  77.  
  78.      VVVVMMMMSSSS iiiimmmmpppplllleeeemmmmeeeennnnttttaaaattttiiiioooonnnn
  79.  
  80.      The version of _e_x_t() which is executed under VMS differs from the Unix-
  81.      OS/2 version in several respects:
  82.  
  83.      +o Input library and path specifications are accepted with or without the
  84.        -l and -L prefices used by Unix linkers.  If neither prefix is present,
  85.        a token is considered a directory to search if it is in fact a
  86.        directory, and a library to search for otherwise.  Authors who wish
  87.        their extensions to be portable to Unix or OS/2 should use the Unix
  88.        prefixes, since the Unix-OS/2 version of _e_x_t() requires them.
  89.  
  90.      +o Wherever possible, shareable images are preferred to object libraries,
  91.        and object libraries to plain object files.  In accordance with VMS
  92.        naming conventions, _e_x_t() looks for files named _l_i_bshr and _l_i_brtl; it
  93.        also looks for _l_i_blib and lib_l_i_b to accomodate Unix conventions used in
  94.        some ported software.
  95.  
  96.      +o For each library that is found, an appropriate directive for a linker
  97.        options file is generated.  The return values are space-separated
  98.        strings of these directives, rather than elements used on the linker
  99.        command line.
  100.  
  101.      +o LDLOADLIBS and EXTRALIBS are always identical under VMS, and BSLOADLIBS
  102.        and LD_RIN_PATH are always empty.
  103.  
  104.      In addition, an attempt is made to recognize several common Unix library
  105.      names, and filter them out or convert them to their VMS equivalents, as
  106.      appropriate.
  107.  
  108.      In general, the VMS version of _e_x_t() should properly handle input from
  109.      extensions originally designed for a Unix or VMS environment.  If you
  110.      encounter problems, or discover cases where the search could be improved,
  111.      please let us know.
  112.  
  113.      WWWWiiiinnnn33332222 iiiimmmmpppplllleeeemmmmeeeennnnttttaaaattttiiiioooonnnn
  114.  
  115.      The version of _e_x_t() which is executed under Win32 differs from the
  116.      Unix-OS/2 version in several respects:
  117.  
  118.      +o Input library and path specifications are accepted with or without the
  119.        -l and -L prefices used by Unix linkers.  -lfoo specifies the library
  120.        foo.lib and -Ls:ome\dir specifies a directory to look for the libraries
  121.        that follow.  If neither prefix is present, a token is considered a
  122.        directory to search if it is in fact a directory, and a library to
  123.        search for otherwise.  The $Config{lib_ext} suffix will be appended to
  124.        any entries that are not directories and don't already have the suffix.
  125.        Authors who wish their extensions to be portable to Unix or OS/2 should
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. EEEExxxxttttUUUUttttiiiillllssss::::::::LLLLiiiibbbblllliiiisssstttt((((3333))))                                      EEEExxxxttttUUUUttttiiiillllssss::::::::LLLLiiiibbbblllliiiisssstttt((((3333))))
  137.  
  138.  
  139.  
  140.        use the Unix prefixes, since the Unix-OS/2 version of _e_x_t() requires
  141.        them.
  142.  
  143.      +o Entries cannot be plain object files, as many Win32 compilers will not
  144.        handle object files in the place of libraries.
  145.  
  146.      +o If $potential_libs is empty, the return value will be empty.
  147.        Otherwise, the libraries specified by $Config{libs} (see Config.pm)
  148.        will be appended to the list of $potential_libs.  The libraries will be
  149.        searched for in the directories specified in $potential_libs as well as
  150.        in $Config{libpth}. For each library that is found,  a space-separated
  151.        list of fully qualified library pathnames is generated.  You may
  152.        specify an entry that matches /:nodefault/i in $potential_libs to
  153.        disable the appending of default libraries found in $Config{libs} (this
  154.        should be only needed very rarely).
  155.  
  156.      +o The libraries specified may be a mixture of static libraries and import
  157.        libraries (to link with DLLs).  Since both kinds are used pretty
  158.        transparently on the win32 platform, we do not attempt to distinguish
  159.        between them.
  160.  
  161.      +o LDLOADLIBS and EXTRALIBS are always identical under Win32, and
  162.        BSLOADLIBS and LD_RUN_PATH are always empty (this may change in
  163.        future).
  164.  
  165. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  166.      the _E_x_t_U_t_i_l_s::_M_a_k_e_M_a_k_e_r manpage
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.